package com.chenyongjing.design.pattern.delegate.general;

public class Delegate implements Task{

    @Override
    public void doTask() {
        ConcreteA concreteA = new ConcreteA();
        ConcreteB concreteB = new ConcreteB();
        concreteB.doTask();
        concreteA.doTask();
    }
}
